import React from 'react';
import { Component } from "@tarojs/taro-rn";
import { View } from "@tarojs/components-rn";
import { getRuntime } from "../utils/common";
// 举报组件
let Report = class Report extends Component {
  static handelRouter(url = '/pages/index/index') {
    getRuntime().navigateTo(url);
  }
  render() {
    return <View>
        <View className="report" onClick={Report.handelRouter.bind(this, '/pages/other/report_detail')}>
          <View className="text">若遇到无效、诈骗、虚假等不信息，请立即举报</View>
          <View className="btn-report">举报</View>
        </View>
      </View>;
  }
};

export default Report;